#import <UIKit/UIKit.h>

//Extension
#import "NSString+Extension.h"
#import "NSDictionary+Extension.h"
#import "UIColor+Extension.h"
#import "UIImage+Extension.h"
#import "UIView+Extension.h"
#import "UIImageView+Extension.h"
#import "UITableView+Extension.h"
#import "UIBarItem+Extension.h"

#import "MRLabel.h"
#import "MRButton.h"
#import "MRHudView.h"
#import "MRChartView.h"
#import "MRPickerView.h"
#import "MRCollectionView.h"

#import "MRViewController.h"
#import "MRTabBarController.h"
#import "MRSideViewController.h"
#import "MRTableViewController.h"
#import "MRNavigationController.h"

#import "MRAlert.h"
#import "MRSkinManager.h"
#import "MRPageController.h"

#define	M_1_INCL			(1.f / M_INCL)

#define IOS10               (([[[UIDevice currentDevice] systemVersion] intValue] >= 10))
#define IOS9                (([[[UIDevice currentDevice] systemVersion] intValue] >= 9))
#define IOS8                (([[[UIDevice currentDevice] systemVersion] intValue] >= 8))

#define DIS35               ([UIScreen mainScreen].bounds.size.height == 480)       //3.5寸屏
#define DIS40               ([UIScreen mainScreen].bounds.size.height == 568)       //4.0寸屏
#define DIS47               ([UIScreen mainScreen].bounds.size.height == 667)       //4.7寸屏
#define DIS55               ([UIScreen mainScreen].bounds.size.height == 736)       //5.5寸屏

#define DPISCALE(z)			([UIScreen mainScreen].bounds.size.width * (z) / 320.f)
#define PIXEL(p)			((p) / [UIScreen mainScreen].scale)
#define LOCPIXEL(p)			(lround((p) * [UIScreen mainScreen].scale) / [UIScreen mainScreen].scale)

#define rgba(r, g, b, a)    ([UIColor colorWithRed:((r) / 255.0) green:((g) / 255.0) blue:((b) / 255.0) alpha:(a)])
#define rgb(r, g, b)        rgba(r, g, b, 1.f)

#define hsba(h, s, b, a)    ([UIColor colorWithHue:((h) / 255.0) saturation:((s) / 255.0) brightness:((b) / 255.0) alpha:(a)])
#define hsb(h, s, b)        hsba(h, s, b, 1.f)

#define NSLocalized(key)			L(key)
#define NSLocalizedArray(key)		ARY(key)

#define DFRAME(r)			DLog(@"FRAME = {X:%f Y:%f W:%f H:%f}", r.origin.x, r.origin.y, r.size.width, r.size.height)
#define DPOINT(p)			DLog(@"POINT = {X:%f Y:%f}", p.x, p.y)
#define DSIZE(z)			DLog(@"SIZE = {W:%f H:%f}", z.width, z.height)
